package com.gt.quality.system.service.excel.user;

import cn.idev.excel.annotation.ExcelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * @description: excel 导入实体用户
 * @author: makeJava
 * @createTime: 2025-01-04 21:14
 * @since JDK 21
 **/
@Data
@EqualsAndHashCode
public class ExcelExportUserInfo implements Serializable {

    @ExcelProperty(value = "用户名")
    private String userName;

    @ExcelProperty(value = "用户昵称")
    private String nickName;

    @ExcelProperty(value = "用户类型")
    private String userType;

    @ExcelProperty(value = "邮箱")
    private String email;

    @ExcelProperty(value = "手机号码")
    private String phoneNumber;

    @ExcelProperty(value = "性别")
    private String sex;

    @ExcelProperty(value = "头像")
    private Long avatar;

    @ExcelProperty(value = "密码")
    private String password;

    @ExcelProperty(value = "帐号状态")
    private String status;

    @ExcelProperty(value = "备注")
    private String remark;


    /**
     * Description: excel导入模板示例数据
     *
     * @author: makeJava
     * @date: 2025-01-05 11:57:28
     */
    public static ExcelExportUserInfo buildTemplateData() {
        ExcelExportUserInfo templateData = new ExcelExportUserInfo();
        templateData.setUserName("zhangSan");
        templateData.setNickName("张三");
        templateData.setAvatar(10084L);
        templateData.setEmail("zhangSan@gmail.com");
        templateData.setPhoneNumber("18688888888");
        templateData.setSex("1");
        templateData.setRemark("备注...");
        templateData.setStatus("1");
        templateData.setPassword("123456");
        templateData.setUserType("sys_user");
        return templateData;
    }

}
